//
//  StatusForwardCell.swift
//  MyWeiboApp
//
//  Created by 胡海波 on 15/7/3.
//  Copyright © 2015年 胡海波. All rights reserved.
//

import UIKit
import FFAutoLayout

class StatusForwardCell: StatusCell {

    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {

        super.init(style: style, reuseIdentifier: reuseIdentifier)

        forwardLable = UILabel(color: UIColor.darkGrayColor(), fontSize: 14, mutiLines: true)
        forwardLable?.preferredMaxLayoutWidth = UIScreen.mainScreen().bounds.width - 16
        insertSubview(forwardLable!, atIndex: 0)


        forwardButton.backgroundColor = UIColor(white: 0.9, alpha: 1.0)
        insertSubview(forwardButton, atIndex: 0)
        // 设置布局
        forwardButton.ff_AlignVertical(ff_AlignType.BottomLeft, referView: contentLable, size: nil, offset: CGPoint(x: -12, y: 12))
        forwardButton.ff_AlignVertical(ff_AlignType.TopRight, referView: footerView, size: nil)
        forwardLable!.ff_AlignInner(ff_AlignType.TopLeft, referView: forwardButton, size: nil, offset: CGPoint(x: 12, y: 12))

        calPictureCons( pictureView.ff_AlignVertical(ff_AlignType.BottomLeft, referView: forwardLable!, size: CGSize(width: 290, height: 90), offset: CGPoint(x: 0, y: 12)))

    }

    

    required init(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    lazy var forwardButton = UIButton()
}
